import VueRouter from "vue-router"
//导入tabbar对应得路由组件
import HomeContainer from './components/tabbar/HomeContainer.vue'
import ClassifyContainer from './components/tabbar/ClassifyContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopCartContainer from './components/tabbar/ShopCartContainer.vue'
import ProDetail from './components/pro/prodetail.vue'
import ComOrder from './components/order/comorder.vue'
import PayOrder from './components/order/payorder.vue'
import EditAddress from './components/address/editaddress.vue'

var router = new VueRouter({
        routes: [
            //tabbar 路由规则设置
            { path: '/', component: HomeContainer },
            { path: '/home', component: HomeContainer },
            { path: '/classify', component: ClassifyContainer },
            { path: '/cart', component: ShopCartContainer },
            { path: '/member', component: MemberContainer },
            { path: '/prodetail/:id', component: ProDetail, name: 'goodsinfo' },
            { path: '/comorder', component: ComOrder, name: 'comorder' },
            { path: '/payOrder', component: PayOrder, name: 'payOrder' },
            { path: '/editaddress', component: EditAddress, name: 'editaddress' }
        ],
        linkActiveClass: 'mui-active',
    })
    //把路由对象暴露出去
export default router